import Vue from 'vue'
import VueRouter from 'vue-router'
Vue.use(VueRouter)

import Home from '../views/Home.vue'
import AlarmRecord from'../views/subs/AlarmRecord.vue'
import FirstPage from'../views/subs/FirstPage.vue'
import FirstPageE from'../views/subs/FirstPageE.vue'
import AlarmClassification from'../views/subs/AlarmClassification.vue'
import AlarmStatistics from'../views/subs/AlarmStatistics.vue'
import Rule from'../views/subs/Rule.vue'


const routes = [
  {
    path: '/',
    name: 'Home',
    component: Home,
	children:[

		{
		  path: '/Home/Rule',
		  name: 'HomeRule',
		  component: Rule,
		},

	  {
	    path: '/Home/FirstPage',
	    name: 'HomeFirstPage',
	    component: FirstPage,
	  
	  },

	  {
	    path: '/Home/FirstPageE',
	    name: 'HomeFirstPageE',
	    component: FirstPageE,
	  
	  },
	  {
	    path: '/Home/AlarmRecord',
	    name: 'HomeAlarmRecord',
	    component: AlarmRecord,
	  
	  },
		{
		  path: '/Home/AlarmStatistics',
		  name: 'HomeAlarmStatistics',
		  component: AlarmStatistics,
		},
		{
		  path: '/Home/AlarmClassification',
		  name: 'HomeAlarmClassification',
		  component:AlarmClassification,
		},
	],
	redirect: '/Home/FirstPageE',
  }
]

const router = new VueRouter({
  mode: 'history',
  base: process.env.BASE_URL,
  routes
})

export default router

